package com.sun.service.impl;

import com.sun.dao.MovieDao;
import com.sun.dao.impl.MovieDaoImpl;
import com.sun.entity.Movie;
import com.sun.service.MovieService;

import java.util.List;

public class MovieServiceImpl implements MovieService {
    MovieDao movieDao = new MovieDaoImpl();
    @Override
    public List<Movie> selectMovie(int page) {
        return movieDao.selectMovie(page);
    }

    @Override
    public int selectAllNumber() {
        return movieDao.selectAllNumber();
    }

    @Override
    public int selectMovieByMovieName(String movieName) {
        return movieDao.selectMovieByMovieName(movieName);
    }

    @Override
    public int addMovie(Movie movie) {
        return movieDao.addMovie(movie);
    }
}
